﻿using System.Windows;
using System.Windows.Controls;

namespace Zeus.UserControls
{
    public partial class videowindow : ChildWindow
    {
        public videowindow()
        {
            InitializeComponent();
        }

        private void OkButtonClick(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void StopMedia(object sender, RoutedEventArgs e)
        {
            media.Stop();
        }

        private void PauseMedia(object sender, RoutedEventArgs e)
        {
            media.Pause();
        }

        private void PlayMedia(object sender, RoutedEventArgs e)
        {
            media.Play();
        }

        private void ControlvolumeValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        {
            if (controlvolume != null)
            {
                media.Volume = controlvolume.Value;
            }

        }
    }
}

